<template>
  <div>
    <ul>
      <li v-for="item in people" :key="item">
        {{ item }}
      </li>
    </ul>
    <button @click="change">走一走</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      people: ["帅哥", "美女", "程序员"],
    };
  },
  methods: {
    change() {
      this.people.push(this.people.shift());
    },
  },
};
</script>

<style>
</style>